package com.bsj.power.common.def.dto.user;

import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @author yinhao
 * @version 1.0
 * @description 密码更新DTO
 * @date 2024/4/22
 */
@Data
public class UserModifyPasswordDTO {

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 旧密码
     */
    @NotNull(message = "旧密码不能为空")
    private String password;
    /**
     * 新密码
     */
    @NotNull(message = "新密码不能为空")
    private String newPassword;
}
